package com.hqyj.dao;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.hqyj.pojo.GoodsInfo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hqyj.pojo.GoodsQueryParameter;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author rock
 * @since 2023-02-27 10:43:26
 */
@Mapper
public interface GoodsInfoMapper extends BaseMapper<GoodsInfo> {

    //查询特卖和热卖产品
    List<GoodsInfo> queryGoodsByFormId(Integer formId);

    //查询商品类型的三个广告位数据
    List<GoodsInfo> queryGoodsThree(Integer formId,Integer goodsTypeId);

    //商品信息查询分页
    Page<GoodsInfo> queryGoodsByParameter(Page<GoodsInfo> page, @Param("p") GoodsQueryParameter parameter);
}
